home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / deadbot.gsh < prev    next >
Text File  |  2000-08-22  |  1KB  |  52 lines

  1. // defines Deadbot
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_DEADBOT_GSH
  8. #define INCLUDED_DEADBOT_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13.  
  14. hierarchy Hcy_Deadbot
  15. {
  16.     file "units\dead bot a.RIF"
  17.     name "dead bot a"
  18. }
  19.  
  20. character Chr_Deadbot : Chr_DefaultBaddie
  21. {
  22.     turning speed   0.3    // this is in revolutions per second
  23.     walking speed   1.0    // this is in animation cycles per second
  24.     strength        25    // initial strength points
  25.     aim             1    // how many degrees off target he can be at most
  26.     sight angle    80    // in degrees
  27.     sight range     2    // in metres
  28.     hearing range    20    // in metres
  29.     aggression    1    // from 0 to 1
  30.     gun yaw angle    0    // in degrees
  31.     description    drone description
  32. }
  33.  
  34. role Rol_Deadbot : Rol_DefaultRobot
  35. {
  36.     shape            Hcy_Deadbot
  37.  
  38.     character        Chr_Deadbot
  39.  
  40.     identifier        "deadbot"
  41.  
  42.     armour            25
  43.  
  44.     destructibility        Des_Explode
  45.  
  46.     ai            pathfinder
  47. }
  48.  
  49. ////////////////////////////////////////////////////////////////////////////////////
  50.  
  51. // end wrapper - for preventing multiple or recursive inclusions
  52. #endif // !INCLUDED_DEADBOT_GSH